package tv.youxing.android.ui.test;

import com.lzy.okgo.model.Progress;
import com.lzy.okserver.download.DownloadListener;

import java.io.File;

/**
 * Created by Administrator on 2017/7/2.
 */

public class test3DownloadListener extends DownloadListener {

    public test3DownloadListener() {
        super("test3DownloadListener");
    }

    @Override
    public void onStart(Progress progress) {
        System.out.println("1:onStart");
    }

    @Override
    public void onProgress(Progress progress) {
//        System.out.println("1:onProgress");

    }

    @Override
    public void onError(Progress progress) {
        System.out.println("1:onError:"+progress.exception.getMessage());

    }

    @Override
    public void onFinish(File file, Progress progress) {
        System.out.println("1:onFinish");
    }

    @Override
    public void onRemove(Progress progress) {
        System.out.println("1:onRemove");
    }
}
